Add a new task to the system. If the new task has the highest
priority of all and task switches are allowed it will be started
immediately.
Certain task fields should be intitialized and a stack must be
allocated before calling this function. tc_SPReg will be used as the
starting location for the stack pointer, i.e. a part of the stack can
be reserved to pass the task some initial arguments.
Memory can be added to the tc_MemEntry list and will be freed when the
task dies. The new task's registers are set to 0.
INPUTS
task
Pointer to task structure.
initialPC
Entry point for the new task.
finalPC
Routine that is called if the initialPC() function returns.
A NULL pointer installs the default finalizer.
RESULT
The address of the new task or NULL if the operation failed (can only
happen with TF_ETASK set - currenty not implemented).
Kernel Changes - These are mostly functions which are normally implemented by the kernel, but might not be.
12.05.1997 aros
Fixed all headers
17.02.1997 digulla
Polish
Create ETask struct if requested
01.01.1997 ldp
Committed Amiga native (support) code
Changed clib to proto
10.12.1996 aros
Moved all #include's in the first column so makedepend can see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
23.10.1996 aros
Renamed a few macros from XYZ to AROS_XYZ so we know which if from AROS and
which not.
19.10.1996 aros
Include <aros/machine.h> instead of machine.h
11.09.1996 digulla
Always use __AROS_SLIB_ENTRY() to access shared external symbols, because
some systems name an external symbol "x" as "_x" and others as "x".
(The problem arises with assembler symbols which might differ)
16.08.1996 digulla
Added debug output
13.08.1996 digulla
Replaced __AROS_LA by __AROS_LHA
Replaced some __AROS_LH*I by __AROS_LH*
Sorted and added includes